package com.dsl.dslallinone.common.exception;

/**
 * DSL系统自定义异常
 */
public class DslException extends RuntimeException {
    private int code;

    public DslException(String message) {
        super(message);
        this.code = 500;
    }

    public DslException(int code, String message) {
        super(message);
        this.code = code;
    }

    public DslException(String message, Throwable cause) {
        super(message, cause);
        this.code = 500;
    }

    public int getCode() {
        return code;
    }
}
